/*
 * Copyright 2018 Samsung Electronics Co., Ltd. and other contributors
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *     http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

@import '../variables';

.sidenav {
  background-color: $menu-background-color;
  color: $menu-text-color;
  width: $menu-closed-width;
  height: 100%;
  position: fixed;
  top: 0;
  left: 0;
  overflow-x: hidden;
  z-index: $z-level-7;

  ul {
    padding: 0;
    margin: 0;

    li {
      transition: $default-transition-time;
      position: relative;
      cursor: pointer;
      padding: 0;
      margin: 0;
      list-style-type: none;
      text-decoration: none;
      &:not(:first-child):hover {
        color: $menu-selection-color;
      }

      div {
        width: $menu-text-width;
        height: $menu-item-height;
        line-height: $menu-item-height;
        left: $menu-icon-width;
        position: absolute;
        top: 0;
        text-align: left;
        padding-left: 5px;
      }

      i {
        width: $menu-icon-width;
        height: $menu-item-height;
        line-height: $menu-item-height;
        font-size: $font-size-7;
        position: relative;
        text-align: center;
      }

      #sidenav-toggle-button:hover {
        color: $menu-selection-color;
      }

      #brand-name {
        font-size: $font-size-6;
        cursor: default;
      }
    }

    li.sidenav-panel-toggle.active-sidenav-button {
      i {
        color: $b-green-color;
      }
    }

    li.active-sidenav-button {
      i {
        color: $b-green-color;
      }
    }

    .sidenav-separator {
      border-bottom: $menu-border-1;
      margin-bottom: 5px;
    }
  }

  .sidenav-cancel-ok-buttons {
    .btn {
      text-align: center;
      width: 49%;
    }
  }
}
